package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.AdminNoticeDao;
import ex.com.jm.food.entity.Notices;
import ex.com.jm.food.service.AdminNoticeService;
/**
 * 
 * @author zhaojw
 *
 */
public class AdminNoticeServiceImpl implements AdminNoticeService {

	private AdminNoticeDao adminNoticeDao;
	public AdminNoticeDao getAdminNoticeDao() {
		return adminNoticeDao;
	}

	public void setAdminNoticeDao(AdminNoticeDao adminNoticeDao) {
		this.adminNoticeDao = adminNoticeDao;
	}

	@Override
	public List<Notices> getNotices(int initPage, int pageRow, String title,
			String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminNoticeDao().getNotices(initPage, pageRow, title, s_date, e_date);
	}

	@Override
	public int noticeCount(String title, String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminNoticeDao().noticeCount(title, s_date, e_date);
	}

	@Override
	public Object saveNotice(Notices notices) {
		// TODO Auto-generated method stub
		return this.getAdminNoticeDao().saveNotice(notices);
	}

	@Override
	public void updateNotice(Notices notices) {
		// TODO Auto-generated method stub
        this.getAdminNoticeDao().updateNotice(notices);
	}

	@Override
	public Notices editNotices(String id) {
		// TODO Auto-generated method stub
		return this.getAdminNoticeDao().editNotices(id);
	}

	@Override
	public void delNotice(String id) {
		// TODO Auto-generated method stub
       this.getAdminNoticeDao().delNotice(id);
	}

}
